package com.example.wenmini.entity;

import lombok.Data;

import java.util.List;

@Data
public class QuestionnaireFillRequest {
    private String url;
    private long id;
    private String title;
    private Integer waitTime;
    private Integer count;
    private int status;
    private int totalCount;
    private int finishedCount;
    private Boolean useProxy;
    private String proxyId;
    private List<QuestionConfigDto> questionConfigs;



    @Data
    public static class QuestionConfigDto {
        private Integer questionId;
        private QuestionType type;
        private List<OptionConfigDto> options;
        private List<String> textAnswers;
        private boolean hasTextInput;
    }

    @Data
    public static class OptionConfigDto {
        private Integer optionNumber;
        private Integer percentage;
        private boolean hasTextInput;
        private List<String> textAnswers;
    }
}
